<template>
	<view class="messageCenterDetail">
		<topTitle title="详情" />
		<view class="com">
			<view>{{ UsersMailInfoObj.title }}</view>
			<view>{{ formattingTime(UsersMailInfoObj.add_time) }}</view>
			<view v-html="UsersMailInfoObj.content"></view>
		</view>


	</view>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { UsersMailInfo } from "@/api/UserApi";
import { onLoad } from "@dcloudio/uni-app";
let UsersMailInfoObj = ref<any>({})

onLoad(async (options: any) => {
	if (options.Id) {
		UsersMailInfoObj.value = await UsersMailInfo({ id: options.Id })

	} else {
		UsersMailInfoObj.value = uni.getStorageSync('SysNoticeDetail')


	}
});
</script>
<style scoped lang="scss">
@import "@/static/scss/messageCenter.scss";
</style>